{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "5461b2d8",
   "metadata": {},
   "source": [
    "* 2023-10-23\n",
    "* week08"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "548ee671",
   "metadata": {},
   "source": [
    "# 本周内容\n",
    "## 1.列表进阶\n",
    "## 2. 课本项目\n",
    "## 3. 留一个课堂项目做\n",
    "\n",
    "\n",
    "### 1.1接上周内容（）列表的方法-remove"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "05f5d201",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'Jalex']"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list = [\"张三\",\"李四\",\"小明\",\"Jalex\"]\n",
    "name_list"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "557cfed5",
   "metadata": {},
   "source": [
    "* 思考：我怎么知道李鹏在数据列表里面呢？\n",
    "\n",
    "> 1.先查询  \n",
    "> 2.后删除\n",
    "* in方法（查询元素的方法）"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "id": "6f7191e3",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "张三\n"
     ]
    }
   ],
   "source": [
    "# 列表的循环\n",
    "for i in name_list:\n",
    "    if i == \"张三\":\n",
    "        print(i)\n",
    "        name_list.remove(\"张三\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "e4d7d214",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['李四', '小明', 'Jalex']"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "id": "0ae2f319",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "True"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "\"小明\" in name_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "id": "76a8f705",
   "metadata": {},
   "outputs": [],
   "source": [
    "if \"小明\" in name_list:\n",
    "    name_list.remove(\"小明\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "id": "a91452d3",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['李四', 'Jalex']"
      ]
     },
     "execution_count": 11,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "id": "4365069d",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "False"
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "\"小明\" in name_list"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "06380815",
   "metadata": {},
   "source": [
    "### 1.2列表的其他方法"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "id": "03c4df60",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['李四', 'Jalex']"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# clear 清空，清除列表中的所有元素\n",
    "name_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "id": "365bf485",
   "metadata": {},
   "outputs": [],
   "source": [
    "name_list.clear()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "id": "66fc4bc9",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[]"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "id": "62521821",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'Jalex', '李四']"
      ]
     },
     "execution_count": 20,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# count 查看list中统计元素的数量\n",
    "name_list = [\"张三\",\"李四\",\"小明\",\"Jalex\",\"李四\"]\n",
    "name_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "id": "a1649620",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "2"
      ]
     },
     "execution_count": 21,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list.count(\"李四\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "id": "908cb10a",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 案例\n",
    "# 假设掷骰子10000次，统计1-6各出现多少次\n",
    "import random"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "id": "02f60481",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 需要现有的一个空列表来存放数据\n",
    "random_list = []\n",
    "# 增加数据到列表里\n",
    "for i in range(10000):\n",
    "    random_list.append(random.randint(1,6))\n",
    "# print(random.randint(1,6))  "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "id": "4976c9ad",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[1, 1, 6, 6, 3, 1, 4, 3, 3, 1, 5, 4, 5, 4, 5, 1, 3, 2, 6, 2, 6, 4, 3, 1, 1, 6, 1, 4, 3, 6, 1, 5, 3, 6, 2, 5, 5, 6, 2, 5, 5, 1, 1, 6, 1, 5, 3, 5, 4, 3, 5, 1, 4, 6, 6, 3, 1, 1, 4, 1, 6, 4, 1, 2, 1, 5, 1, 3, 2, 5, 4, 3, 1, 6, 5, 2, 2, 1, 5, 3, 6, 4, 6, 3, 5, 4, 3, 5, 6, 1, 5, 2, 3, 3, 3, 6, 5, 2, 6, 6, 3, 3, 6, 6, 4, 5, 6, 3, 3, 5, 2, 1, 1, 5, 2, 2, 3, 2, 4, 1, 4, 1, 2, 1, 3, 1, 6, 4, 5, 1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   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "1 1660 0.166\n",
      "2 1627 0.1627\n",
      "3 1638 0.1638\n",
      "4 1696 0.1696\n",
      "5 1713 0.1713\n",
      "6 1666 0.1666\n"
     ]
    }
   ],
   "source": [
    "for i in range(1,7):\n",
    "    print(i,random_list.count(i),random_list.count(i)/10000)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "4d834199",
   "metadata": {},
   "source": [
    "### 1.3 列表元素的排序 sort()和reverse()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "id": "36bf46f7",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'Jalex', '李四']"
      ]
     },
     "execution_count": 27,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list = [\"张三\",\"李四\",\"小明\",\"Jalex\",\"李四\"]\n",
    "name_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "id": "c0d981b2",
   "metadata": {},
   "outputs": [],
   "source": [
    "name_list.sort()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 29,
   "id": "2ef33a8d",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['Jalex', '小明', '张三', '李四', '李四']"
      ]
     },
     "execution_count": 29,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 30,
   "id": "d231686d",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[20, 18, 19, 21, 22, 30, 17]"
      ]
     },
     "execution_count": 30,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "age_list = [20,18,19,21,22,30,17]\n",
    "age_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 31,
   "id": "4caa3fba",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[17, 18, 19, 20, 21, 22, 30]"
      ]
     },
     "execution_count": 31,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "age_list.sort()\n",
    "age_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 32,
   "id": "0a5c3222",
   "metadata": {},
   "outputs": [],
   "source": [
    "age_list.reverse()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 33,
   "id": "b163532e",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[30, 22, 21, 20, 19, 18, 17]"
      ]
     },
     "execution_count": 33,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "age_list"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "f40b20b5",
   "metadata": {},
   "source": [
    "### 1.4 copy()"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "75eea135",
   "metadata": {},
   "source": [
    "> 1.=  \n",
    "> 2.copy()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 36,
   "id": "149ccaea",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'Jalex', '李四']"
      ]
     },
     "execution_count": 36,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list01 = [\"张三\",\"李四\",\"小明\",\"Jalex\",\"李四\"]\n",
    "name_list01"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 37,
   "id": "7c354e49",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'Jalex', '李四']"
      ]
     },
     "execution_count": 37,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list02 = name_list01\n",
    "name_list02"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 38,
   "id": "cbe6acbb",
   "metadata": {},
   "outputs": [],
   "source": [
    "name_list01.append('Marry')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 39,
   "id": "7695a062",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'Jalex', '李四', 'Marry']"
      ]
     },
     "execution_count": 39,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list01"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 40,
   "id": "fc641723",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'Jalex', '李四', 'Marry']"
      ]
     },
     "execution_count": 40,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list02"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "f005270f",
   "metadata": {},
   "source": [
    "* 如上原因：我们不得不找一个方法来实现真正的复制"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 41,
   "id": "20754519",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'Jalex', '李四']"
      ]
     },
     "execution_count": 41,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list01 = [\"张三\",\"李四\",\"小明\",\"Jalex\",\"李四\"]\n",
    "name_list01"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 42,
   "id": "f2868fee",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'Jalex', '李四']"
      ]
     },
     "execution_count": 42,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list02 = [\"张三\",\"李四\",\"小明\",\"Jalex\",\"李四\"]\n",
    "name_list02"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 43,
   "id": "4d177cb7",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'李四'"
      ]
     },
     "execution_count": 43,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list01.pop()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 44,
   "id": "90d742cd",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'Jalex']"
      ]
     },
     "execution_count": 44,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list01"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 45,
   "id": "43859bc3",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'Jalex', '李四']"
      ]
     },
     "execution_count": 45,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list02"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "a43b9b2a",
   "metadata": {},
   "source": [
    "# 实践：购物车项目\n",
    "## 购物车程序项目：\n",
    "> 1.运行程序后让用户输入支付宝余额，然后打印我们的商品列表给商户。   \n",
    ">> 1. 列表数据（第一种：自己创建的；第二种：空列表，后面补充数据）  \n",
    "\n",
    "> 2.让用户输入商品编号进行商品的购买。  \n",
    "> 3.用户选择商品后，检查用户的余额是否够，若够则直接扣款不够则提醒用户。  \n",
    "> 4,用户可以随时推出购买，退出时打印用户已购买的商品和支付宝余额。  "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "af9c6afd",
   "metadata": {},
   "outputs": [
    {
     "ename": "SyntaxError",
     "evalue": "invalid character '：' (U+FF1A) (4207768331.py, line 9)",
     "output_type": "error",
     "traceback": [
      "\u001b[1;36m  Cell \u001b[1;32mIn[2], line 9\u001b[1;36m\u001b[0m\n\u001b[1;33m    if 钱包余额 > 商品价格：\u001b[0m\n\u001b[1;37m                  ^\u001b[0m\n\u001b[1;31mSyntaxError\u001b[0m\u001b[1;31m:\u001b[0m invalid character '：' (U+FF1A)\n"
     ]
    }
   ],
   "source": [
    "# 1.\n",
    "Alipay = input(\"支付宝余额\")\n",
    "商品列表 = [\"...\"]\n",
    "print(商品列表)\n",
    "购物车_list = []\n",
    "\n",
    "# 2. # 3.\n",
    "users_chosse = input()\n",
    "if 钱包余额 > 商品价格：\n",
    "       扣钱，加商品进购物车(append)\n",
    "else\n",
    "       print(\"你的钱不够......\")\n",
    "    \n",
    "# 4.\n",
    "break 退出循环，打印购物车"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "id": "c181d990",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "请输入余额：9000\n",
      "阿桐木小店\n",
      "0 ,商品名称：轮椅,价格为：800元\n",
      "1 ,商品名称：星食茶,价格为：8元\n",
      "2 ,商品名称：蛋糕,价格为：88元\n",
      "3 ,商品名称：吧唧,价格为：35元\n",
      "用户选择的商品编号:0\n",
      "您的余额为：8200元\n",
      "购物车： [['轮椅', 800]]\n"
     ]
    }
   ],
   "source": [
    "alipay = int(input(\"请输入余额：\")) # 用户输入\n",
    "\n",
    "商品列表 = [\n",
    "    [\"轮椅\",800],\n",
    "    [\"星食茶\",8],\n",
    "    [\"蛋糕\",88],\n",
    "    [\"吧唧\",35]\n",
    "]\n",
    "shopping_car = []\n",
    "# print(商品列表)\n",
    "\n",
    "# 3 循环执行\n",
    "while True：\n",
    "   print(\"阿桐木小店\")\n",
    "for i in 商品列表:\n",
    "       print(\"%s ,商品名称：%s,价格为：%s元\"%(商品列表.index(i),i[0],i[1]))\n",
    "   # 2 用户选商品\n",
    "   用户选择 = int(input(\"用户选择的商品编号:\"))\n",
    "   # 增加进购物车，扣钱？\n",
    "   if alipay > 商品列表[用户选择][1]:\n",
    "    # 1. 钱够！扣钱，加入购物车\n",
    "    alipay = alipay - 商品列表[用户选择][1]\n",
    "    shopping_car.append(商品列表[用户选择])\n",
    "    print(\"您的余额为：%s元\"%(alipay))\n",
    "else:\n",
    "    print(\"就这点钱，还想买%s\"%(商品列表[用户选择][0]))\n",
    "    \n",
    "print(\"购物车：\",shopping_car)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "9728af0a",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "d93ab6ca",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.11.4"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
